<?php $id="form_".uniqid();?>
<table id="<?php echo $id;?>"></table>
<script>
    $("#<?php echo $id;?>").DataSource({url:'stats/get_front_notice_list',
        fields:[[
            {field:'t1',title:'发布时间 ', align:'center', width:150, sortable:false},
            {field:'t2',title:'显示内容 ', align:'center', width:300, sortable:true},
            {field:'t3',title:'发布者', align:'center', width:50, sortable:true},
            {field:'t4',title:'显示类型', align:'center',  width:120},
            {field:'t5',title:'层级', align:'center',  width:100,  sortable:true},
            {field:'t6',title:'显示位置',align:'center', width:160},
            {field:'aa',      title:'功能', align:'center',width:260,sortable:false,formatter:function(v,r){
                return '<a herf="#" class="btn btn-danger btn-xs" onclick=Core.dialog(\'基本资料修改\',\'stats/change_front_notice\',function(){},true,false);>修改</a>&nbsp;&nbsp;'+
                    '<a herf="#" class="btn btn-danger btn-xs">暂停</a>&nbsp;&nbsp;'+
                    '<a herf="#" class="btn btn-danger btn-xs" onclick=Core.confirm("<?php echo $id;?>",1,"asd","确定停用该会员使用?")>删除</a>&nbsp;';
            }}
        ]], tools:[
            {instant:false},
            {type:'datebox', text:'日期', width:100,name:'qaddtime'},
            {type:'datebox', text:'-', width:100,name:'zaddtime'},
            {type:'combobox',text:'状态',width:100,name:'status',value:'', items:'<option value="">启用</option><option value="1">停用</option>'},
            {text:"搜索", iconCls:"icon-search", handler:function(){
                $('#<?php echo $id?>').DataSource('search');
            }
            }
        ],
        footer:true,
        success:function(){

        }
    });
</script>